﻿using System.Collections.Generic;
using Shuba.Model;

namespace Shuba.Business
{
    public class RegionalTarget
    {
        private Data.RegionalTarget Regionaltarget;

        public RegionalTarget()
        {
            Regionaltarget = new Data.RegionalTarget();
        }

        public List<RegionalTargetInfo> GetList(string TargetYear, string CostCenter)
        {
            return Regionaltarget.GetList(TargetYear, CostCenter);
        }

        public List<RegionalTargetInfo> GetListApproval(string TargetYear, string UpdateBy, string CostCenter)
        {
            return Regionaltarget.GetListApproval(TargetYear, UpdateBy.TrimEnd(), CostCenter);
        }

        public RegionalTargetInfo Get(string id, string TargetYear)
        {
            return Regionaltarget.Get(id, TargetYear);
        }

        public int Save(RegionalTargetInfo RegionalTargetInfo)
        {
            return Regionaltarget.Save(RegionalTargetInfo);
        }

        public int Approve(string RegionalID, string TargetYear, string ActType)
        {
            return Regionaltarget.Approve(RegionalID, TargetYear, ActType);
        }

        public int Reject(string RegionalID, string TargetYear)
        {
            return Regionaltarget.Reject(RegionalID, TargetYear);
        }

        public RegionalTargetInfo GetApprovalByID(string RegionalID, string TargetYear)
        {
            return Regionaltarget.GetApprovalByID(RegionalID, TargetYear);
        }

        public bool IsDependency(string RegionalID, string TargetYear)
        {
            return Regionaltarget.IsDependency(RegionalID, TargetYear);
        }
    }
}
